{template "content","header_sub"}
    {if $catid=="894" }
	  {php $group_title="小学书画组" }
	  {php $vote="vote" }
	{/if}
    {if $catid=="895" }
	  {php $group_title="初中绘画组" }
	  {php $vote="vote2" }
	{/if}
    {if $catid=="896" }
	  {php $group_title="初中书法篆刻组" }
	  {php $vote="vote3" }
	{/if}
    <div class="content_warp">&nbsp;
      <div class="content_l">
        <div class="sub_nav">
          <dl>
            <dt>网络投票</dt>
            <dd {if $catid=="894" }class="on"{/if}><a href="vote" onfocus="blur()">小学书画组</a></dd>
            <dd {if $catid=="895" }class="on"{/if}><a href="vote2" onfocus="blur()">初中绘画组</a></dd>
            <dd {if $catid=="896" }class="on"{/if}><a href="vote3" onfocus="blur()">初中书法篆刻组</a></dd>
          </dl>
        </div>
        <div class="sub_img"><img src="phpcms/templates/default/statics/imgs/contact.jpg"/></div>
      </div>
      <div class="content_r">
        <div>
			<div>
			<span class="en_title" id="T1">INTERNET VOTING</span><br/>
			<span class="cn_title">{$group_title}作品</span><br/>
			<span>请为您喜爱的作品投出宝贵的一票，每幅作品每天只能投1票。</span>
			</div>
		  	
	          {php $sort="$_GET[sort]"}
	          {if $sort <> "" }
	            {php $sort="count desc"}
	            <div class="buttons">
	            <a class="sort_btn" href="{$vote}">不排序</a>
	            </div>
	          {else}
	             {php $sort="id asc"}
	              <div class="buttons">
	             <a class="sort_btn" href="{$vote}_asc">排序</a>
	             </div>
	          {/if}
        </div>
		<div><hr/></div>
        <div class="clear"></div>
        <div class="art_items">
          {pc:content action="lists" catid="$catid" where="$where" order="$sort" num="20" return="art_items" moreinfo="1" page="$_GET[page]"}
          <div class="art_item">
            {loop $art_items $art}
            <ul class="art_list">
              <li>
                <div class="thmb">
                	{if $art[thumb] <> ""}
                		<a href={$art[thumb]} rel="lightbox">
                		<img src="{$art[thumb]}"></img>
                		</a>
                	{else}
                		<a href="phpcms/templates/default/statics/imgs/error.jpg" rel="lightbox">
                		<img src="phpcms/templates/default/statics/imgs/error.jpg"></img>
                		</a>
                	{/if}
                </div>
                <div style="padding-left:3px;">
                  <div class="des-box">
                    <ul class="des">
                      <li>{$art[title]}</li>
                      <li>编号：{$art[id]}</li>
                      <li>作者：{$art[author]}</li>
                      <li name="{id_encode($catid,$art[id],$siteid)}" class="vote_total" >票数：</li>
                    </ul>
                    <div class="vote"><a name="{id_encode($catid,$art[id],$siteid)}" href="javascript:;" onfocus="blur()"><img title="投票" src="phpcms/templates/default/statics/imgs/wytp_btn.gif"></img></a></div>
                    <div id="qaptcha_{$art[id]}" class="QapTcha"></div>
                  </div>
                </div>
              </li>
            </ul>
            {/loop}
          </div>
          {/pc}
        </div>
      </div><!-- content_r -->
      <div class="clear"></div>
    </div><!-- content_warp -->
	  <div class="show_page_nav">
	    {$pages_my}
	    <div class="clear"></div>
	  </div>
{template "content","footer"}
<script src="{JS_PATH}lightbox/jquery-1.7.2.min.js"></script>
<script src="{JS_PATH}lightbox/lightbox.js"></script>
<script src="phpcms/templates/default/statics/js/vote.js"></script>
<script language="javascript" type="text/javascript" src="phpcms/templates/default/statics/js/QapTcha/jquery-ui.js"></script>
<script language="javascript" type="text/javascript" src="phpcms/templates/default/statics/js/QapTcha/jquery.ui.touch.js"></script>
<script language="javascript" type="text/javascript" src="phpcms/templates/default/statics/js/QapTcha/QapTcha.jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
      $(".QapTcha").QapTcha();
      });
</script>
<link rel="stylesheet" type="text/css" media="all" href="phpcms/templates/default/statics/css/QapTcha.jquery.css" />